/******************* 公共变量 *******************/
var userId = core.getUrlData('user_id'),
	userName = core.getUrlData('user_name');

/******************* Vue初始化代码 *******************/
var vm = new Vue({
	el: '.wrap',
	data: {
		code: ''
	},
	methods: {
		
	},
	computed: {
		
	},
	components: {
		
	},
	created: function () {
		var _this = this;
		$.ajax({
			url: userCode,
			type: 'post',
			success: function(data) {
				console.log(data)

				if (data.result == 1) {
					_this.code = data.list;
				} else if (data.result == 0) {
					core.layerHint(data.message);
				}
			}
		});
	},
	mounted: function () {
		common.bindBack();
	}
});

